package com.freesky.web.portal.reomte.fallback;

import com.freesky.common.vo.VOCommon;
import com.freesky.common.vo.portal.VOMember;
import com.freesky.common.vo.VOMemberLoginRegist;
import com.freesky.common.pojo.Result;
import com.freesky.common.utils.ResultUtil;
import com.freesky.web.portal.reomte.MemberRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
@Component
public class MemberRemoteFallback implements MemberRemote {
    private Logger logger = LoggerFactory.getLogger(MemberRemoteFallback.class);
    @Override
    public String geetesrInit() {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public Result<VOMember> login(VOMemberLoginRegist VOMemberLoginRegist) {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public Result<VOMember> checkLogin(String token) {
        logger.error("服务维护中");
        VOMember VOMember = new VOMember();
        VOMember.setState(0);
        return new ResultUtil<VOMember>().setData(VOMember);
    }

    @Override
    public Result<Object> logout(String token) {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public Result<Object> register(VOMemberLoginRegist memberLoginRegist, HttpServletRequest request) {
        logger.error("服务维护中");
        return null;
    }

    @Override
    public Result<Object> imgaeUpload(VOCommon common) {
        logger.error("服务维护中");
        return null;
    }
}
